/* 问题容器样式 */

/* 添加全局CSS变量和基础样式 */
:root {
    --primary-color: #1890FF;
    --secondary-color: #40A9FF;
    --background-color: #f0f7ff;
    --gradient-start: #1890FF;
    --gradient-end: #40A9FF;
    --card-background: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--background-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(24, 144, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.1rem 1.5rem;
}

.question-container {
    max-width: 600px;
    margin: 0 auto;
}

/* 进度条样式 */
.progress-container {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.5s ease-in-out;
}

.progress-text {
    font-size: 0.85rem;
    color: #1890FF;
}

/* 问题卡片样式 */
.question-card {
    background: var(--card-background);
    border-radius: 0.8rem;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(24, 144, 255, 0.1);
    margin-bottom: 1.5rem;
    border: none;
    animation: fadeIn 0.3s ease-out;
}

.question-number {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    opacity: 0.95;
    font-weight: 600;
}

.question-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-weight: 500;
}

/* 选项按钮样式 */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-btn {
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 0.6rem;
    padding: 1rem 1.2rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.option-btn:hover {
    background: #f0f0f0;
    border-color: #d9d9d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
    animation: selectPulse 0.3s ease-out;
}

.option-text {
    font-size: 1rem;
    color: inherit;
    position: relative;
    z-index: 1;
}

/* 导航按钮样式 */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.nav-btn {
    background: #ffffff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
}

.nav-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}

.nav-btn:disabled {
    background: #f5f5f5;
    color: #999999;
    border-color: #e8e8e8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 添加顶部标题样式 */
.question-header {
    text-align: center;
    margin-bottom: 0.6rem;
    background: transparent;
    padding: 0;
    border-radius: 0.8rem;
}

.question-header h1 {
    color: #1890FF;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

/* 进一步优化测试须知的样式 */
.test-instructions {
    background: var(--card-background);
    border-radius: 0.8rem;
    padding: 0.6rem 3.2rem;
    box-shadow: 0 8px 20px rgba(24, 144, 255, 0.1);
    margin: 0 auto 1rem;
    max-width: 500px;
    border: none;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.3rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.2rem 0;
}

.instruction-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 标题和题目数的样式 */
.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    padding-top: 0;
}

.header-title h2 {
    color: #1890FF;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: none;
    font-weight: 600;
}

.question-total {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .question-header {
        margin-bottom: 1.5rem;
    }

    .header-title {
        margin-bottom: 1rem;
        padding-top: 0;
    }

    .test-instructions {
        margin-bottom: 1.5rem;
    }

    .question-container {
        max-width: 100%;
    }

    .progress-container {
        margin-bottom: 1.2rem;
    }

    .question-card {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .question-number {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .question-text {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .option-btn {
        padding: 0.8rem 1rem;
    }

    .option-text {
        font-size: 0.95rem;
    }

    .nav-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .question-header h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .instruction-item {
        font-size: 0.8rem;
        margin: 0.3rem 0;
    }

    .instruction-item i {
        font-size: 0.85rem;
    }

    .header-title h1 {
        font-size: 1.6rem;
    }

    .question-total {
        font-size: 0.9rem;
        padding: 0.2rem 0.6rem;
    }
}

/* 更小屏幕的适配 */
@media (max-width: 375px) {
    .container {
        padding: 1rem 0.8rem;
    }

    .test-instructions {
        margin-bottom: 1.2rem;
    }

    .progress-container {
        margin-bottom: 1rem;
    }

    .question-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .question-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .option-btn {
        padding: 0.7rem 0.9rem;
    }

    .option-text {
        font-size: 0.9rem;
    }

    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .question-header h1 {
        font-size: 1.4rem;
    }

    .instruction-item {
        font-size: 0.75rem;
        margin: 0.25rem 0;
    }

    .instruction-item i {
        font-size: 0.8rem;
    }

    .header-title h1 {
        font-size: 1.4rem;
    }

    .question-total {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes selectPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* 提交按钮样式 */
.nav-btn.submit-btn, .nav-btn.next-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
}

.nav-btn.submit-btn:hover, .nav-btn.next-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.nav-btn.submit-btn:disabled {
    background-color: #9CA3AF;
    transform: none;
    box-shadow: none;
}

/* 提交按钮动画 */
.nav-btn.submit-btn i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-btn.submit-btn:hover i {
    transform: scale(1.1);
}
/* 右下角找回报告按钮样式 */
.recover-report-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    font-weight: 500;
}

.recover-report-button i {
    font-size: 18px;
    margin-right: 8px;
}

.recover-report-button span {
    font-size: 14px;
    font-weight: 500;
}

.recover-report-button:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* 适配移动设备 */
@media (max-width: 768px) {
    .recover-report-button {
        right: 15px;
        bottom: 15px;
        padding: 8px 12px;
    }

    .recover-report-button i {
        font-size: 16px;
    }

    .recover-report-button span {
        font-size: 12px;
    }
}